<template>
  <div id="app">
    <router-view></router-view>
  </div>
</template>

<script>
export default {
  name: 'App',
  components: {},
  created() {
    // 页面刷新后如果存在token就读取cookie中的menu，加载页面
    this.$store.commit('tab/addMenu')
  }
}
</script>

<style>
body, html {
  padding: 0;
  margin: 0;
}

#app {
  height: 100vh;
}
</style>
